import request from '../util/request'
import {post} from "axios"


export default{
    findAllOrders() {
        return request({
            url: '/order/list',
            method: 'get'
        })
    },
    findOrderByPage(page, pageSize) {
        return request({
            url: `/order/findByPage/${page}/${pageSize}`,
            method: 'get'
        })
    },

    add(data){
        return request({
            url: '/order/add',
            method: 'post',
            data: data
        })
    },
    update(data){
        return request({
            url: '/order/update',
            method: 'put',
            data: data
        })
    },
    delete(id) {
        return request({
            url: `/order/delete/${id}`,
            method: 'delete'
        })
    },
    deleteBatch(ids) {
        return request({
            url: `/order/deleteBatch/${ids}`,
            method: 'delete',
        })
    }





}
